package wzc.design_pattern.behaviour.template;

/**
 * @Author 那和不是个啥
 * @Date 2025/7/20
 * @Description
 */

public class Tea extends Beverage{
    @Override
    protected void brew() {
        System.out.println("用开水冲泡茶叶");
    }

    @Override
    protected void addCondiments() {
        System.out.println("添加柠檬");
    }

    // 覆盖钩子方法，茶不加糖
    @Override
    protected boolean hook() {
        return false;  // 茶不添加调料
    }
}
